package com.szl.yeb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.szl.yeb.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (Menu)表数据库访问层
 *
 * @author szl
 * @since 2022-08-24 18:05:48
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenusByAdminId(@Param("adminId") Integer adminId, @Param("parentId") Integer parentId);

    List<Menu> selectMenusWithRoles();

    List<Menu> selectMenusWithChildren();

    List<Menu> MenusWithChildrenWithFullData(Integer parentId);
}

